package com.ydgk.jishuzhan.service;

import com.ydgk.jishuzhan.beans.Blog;
import com.ydgk.jishuzhan.beans.BlogCollection;

import java.util.List;
import java.util.Map;

public interface BlogService {
    List<Blog> findBlogs();

    int add(Blog blog);

    Blog findBlog(Integer id);

    List<Blog> findBlogsById(Integer id);

    int findGoods(Integer id);

    void goodAdd(Integer userId, Integer blogId);

    int findGood(Integer userId, Integer blogId);

    int findCollection(Integer userId, Integer blogId);

    void collectionAdd(Integer userId, Integer blogId);

    int findCollections(Integer id);

    List<BlogCollection> getCollections(Map<String, Object> map);

    Integer queryBlogTotal(Map<String, Object> map);

    void deleteBCollection(Integer id);
}
